package cn.itsource.ymcc.feign;

import cn.itsource.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-course",fallbackFactory = CourseFeignFallbackFactory.class)
public interface CourseFeign {
    @RequestMapping(value = "/courseUserLearn/getAbleMovie/{courseId}/{loginId}",method = RequestMethod.GET)
    JSONResult getAbleMovie(@PathVariable("courseId")Long courseId, @PathVariable("loginId") Long loginId);
    @RequestMapping(value="/course/info/{id}",method= RequestMethod.GET)
    JSONResult info(@PathVariable("id") String id);
    @RequestMapping(value="/course/infoKill/{id}/{orderNo}",method= RequestMethod.GET)
    JSONResult infoKill(@PathVariable("id") String id,@PathVariable("orderNo") String orderNo);
}
